#include<stdio.h>
int main(){
	int n,x;
	int sum=0;
	while(scanf("%d",&n)!=EOF){
	for(int i=1;i<=n;i++){
	scanf("%d",&x);
	sum=sum+x;
	}
	printf("%d\n",sum);
	sum=0;}
	return 0;
}
